package com.farmpost.server.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.farmpost.server.pojo.Follower;
import com.farmpost.server.pojo.RespBean;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author king
 * @since 2022-04-12
 */
public interface IFollowerService extends IService<Follower> {

    /**
     * 根据当前用户获取粉丝列表
     * @return
     */
    List<Follower> getFollower();

    /**
     * 删除粉丝
     * @param followerId
     * @return
     */
    RespBean deleteFollower(Integer followerId);

    /**
     * 添加粉丝
     * @param userId
     * @param followerId
     * @return
     */
    RespBean insertFollower(Integer userId, Integer followerId);

    /**
     * 修改粉丝信息
     * @param userId
     * @param followerId
     * @param status
     * @return
     */
    RespBean updateFollower(Integer userId, Integer followerId, Integer status);
}
